home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
asteroid.swf
/
scripts
/
__Packages
/
com
/
evilfree
/
astroidsRevenge
/
ShipMinePlayer.as
< prev
next >
Wrap
Text File
|
2010-11-09
|
6KB
|
202 lines
function §\x01\x02§()
{
return 249 % 511 * 5;
}
var §\x01§ = -880 + "\x01\x02"();
while(true)
{
if(eval("\x01") == 365)
{
set("\x01",eval("\x01") + 502);
§§push(true);
}
else if(eval("\x01") == 694)
{
set("\x01",eval("\x01") - 394);
}
else if(eval("\x01") == 741)
{
set("\x01",eval("\x01") - 499);
if(function §\x01\x02§()
{
return 249 % 511 * 5;
})
{
set("\x01",eval("\x01") + 527);
}
}
else if(eval("\x01") == 867)
{
set("\x01",eval("\x01") - 106);
if(function §\x01\x02§()
{
return 249 % 511 * 5;
})
{
set("\x01",eval("\x01") - 62);
}
}
else if(eval("\x01") == 242)
{
set("\x01",eval("\x01") + 527);
}
else if(eval("\x01") == 699)
{
set("\x01",eval("\x01") - 399);
}
else
{
if(eval("\x01") == 761)
{
set("\x01",eval("\x01") - 62);
break;
}
if(eval("\x01") == 300)
{
set("\x01",eval("\x01") - 50);
§§push("\x0f");
§§push(1);
}
else if(eval("\x01") == 250)
{
set("\x01",eval("\x01") + 490);
var §§pop() = function §\x01\x02§()
{
return 249 % 511 * 5;
};
}
else if(eval("\x01") == 710)
{
set("\x01",eval("\x01") + 31);
§§push(!function §\x01\x02§()
{
return 249 % 511 * 5;
});
}
else if(eval("\x01") == 740)
{
set("\x01",eval("\x01") - 22);
§§push("\x0f");
}
else
{
if(eval("\x01") == 769)
{
set("\x01",eval("\x01") - 627);
if(!_global.com)
{
_global.com = new Object();
}
function §\x01\x02§()
{
return 249 % 511 * 5;
}
if(!_global.com.evilfree)
{
_global.com.evilfree = new Object();
}
§§pop();
if(!_global.com.evilfree.astroidsRevenge)
{
_global.com.evilfree.astroidsRevenge = new Object();
}
§§pop();
if(!_global.com.evilfree.astroidsRevenge.ShipMinePlayer)
{
com.evilfree.astroidsRevenge.ShipMinePlayer extends com.evilfree.astroidsRevenge.ShipMine;
var _loc2_ = com.evilfree.astroidsRevenge.ShipMinePlayer = function(m, target_mc, s)
{
super(m,target_mc,s);
this.mineType = "player";
}.prototype;
_loc2_.place_mc = function(target_mc)
{
this.myDepth = target_mc.getNextHighestDepth();
this.my_mc = target_mc.attachMovie("mineShipPlayer","ship" + this.myDepth,this.myDepth);
};
_loc2_.avoidThese = function(asteroidList)
{
if(asteroidList == undefined)
{
return undefined;
}
var _loc12_ = asteroidList.length;
var _loc4_ = 0;
while(_loc4_ < _loc12_)
{
var _loc2_ = asteroidList[_loc4_];
var _loc5_ = this.getTargetXDistance(_loc2_);
var _loc6_ = this.getTargetYDistance(_loc2_);
var _loc3_ = Math.sqrt(_loc5_ * _loc5_ + _loc6_ * _loc6_);
if(_loc3_ < _loc2_.getSize() / 2 + this.size / 2)
{
if(_loc2_ == this.main.getPlayerAsteroid())
{
_loc2_.bulletHitMe(this.size * 5);
}
this.blowUp();
return 1;
}
if(_loc3_ < 150)
{
var _loc8_ = this.myAtan(_loc6_,_loc5_);
var _loc10_ = this.myCos(_loc8_);
var _loc9_ = this.mySin(_loc8_);
var _loc7_ = (150 - _loc3_) / 150;
this.xSpeed += 2 * _loc10_ * _loc7_;
this.ySpeed += 2 * _loc9_ * _loc7_;
}
_loc4_ = _loc4_ + 1;
}
return 0;
};
_loc2_.damageThese = function(asteroidList)
{
if(asteroidList == undefined)
{
return undefined;
}
var _loc10_ = asteroidList.length;
var _loc4_ = 0;
while(_loc4_ < _loc10_)
{
var _loc2_ = asteroidList[_loc4_];
var _loc6_ = this.getTargetXDistance(_loc2_);
var _loc7_ = this.getTargetYDistance(_loc2_);
var _loc5_ = Math.sqrt(_loc6_ * _loc6_ + _loc7_ * _loc7_);
var _loc3_ = this.size * 2 + _loc2_.getSize();
if(_loc5_ < _loc3_)
{
var _loc8_ = (_loc3_ - _loc5_) / _loc3_;
if(_loc2_ == this.main.getPlayerAsteroid())
{
_loc2_.bulletHitMe(this.size * 2 * _loc8_);
}
}
_loc4_ = _loc4_ + 1;
}
return 0;
};
§§push(ASSetPropFlags(com.evilfree.astroidsRevenge.ShipMinePlayer.prototype,null,1));
}
§§pop();
break;
}
if(eval("\x01") != 718)
{
if(eval("\x01") == 142)
{
set("\x01",eval("\x01") - 142);
break;
}
break;
}
set("\x01",eval("\x01") - 8);
§§push(eval(function §\x01\x02§()
{
return 249 % 511 * 5;
}));
}
}
}